import { defineStore } from 'pinia'
import router from '@/router/index.js'



export const useUserStore = defineStore('user', {
    state: () => {
        return {
            currentUser: null,
            userMenus: null
        }
    },
    getters: {

    },
    actions: {
        setCurrentUser(user) {
            this.currentUser = user
        },
        setUserMenus(menus) {
            this.userMenus = menus
        },
        logout() {
            
        }
    },
    persist: {
        enabled: true
    }
})